<link rel="stylesheet" type="text/css" href="${ctx}/static/css/uploadify.css">
<script type="text/javascript" src="${ctx}/static/js/jquery.uploadify.min.js"></script>
<div align="center" style="margin-top: 60px">
<input type="file" name="upfile" id="file_upload" />
</div>
<script>
    $(function(){
        $('#file_upload').uploadify({
            'swf'      :'${ctx}/static/js/uploadify.swf',
            'uploader':'${ctx}/offer/uploadfile/${id!""}',
            // Put your options here
            buttonText:'选择文件',
            onUploadSuccess: function(file,data,respone){
                alert(data);
            }
        });
    });
</script>